package com.example.forjava.profile;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class Persons {

    @Autowired
    private MoveFactor moveFactor;

    public void speak(){
        moveFactor.speak();
    }
}
